Support transport action names when registering NamedRoutes#7957
Merged
peternied merged 49 commits intoopensearch-project:mainfrom Jul 5, 2023
Merged
Support transport action names when registering NamedRoutes#7957peternied merged 49 commits intoopensearch-project:mainfrom
peternied merged 49 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
cwperks
approved these changes
Jun 7, 2023
Member
cwperks
left a comment
There was a problem hiding this comment.
Thanks @DarshitChanpura, I left some minor comments but otherwise this looks good to me.
server/src/test/java/org/opensearch/action/DynamicActionRegistryTests.java
Show resolved
Hide resolved
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
21903da to
8773509
Compare
cwperks
reviewed
Jun 7, 2023
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
bff1a58 to
411c12a
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
peternied
reviewed
Jun 9, 2023
server/src/main/java/org/opensearch/rest/extensions/RestSendToExtensionAction.java
Outdated
Show resolved
Hide resolved
…ring a named route Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
cwperks
reviewed
Jun 13, 2023
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
dbwiddis
reviewed
Jul 5, 2023
Member
dbwiddis
left a comment
There was a problem hiding this comment.
Looks great, just two final requests.
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Member
Author
|
@peternied Would you please merge this? |
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7957-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 50d8006d5ffb72566b893ef23748d48b26c3a65e
# Push it to GitHub
git push --set-upstream origin backport/backport-7957-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.xThen, create a pull request where the |
DarshitChanpura
added a commit
to DarshitChanpura/OpenSearch
that referenced
this pull request
Jul 5, 2023
…ch-project#7957) * Adds ability to register legacy action names along with route Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> (cherry picked from commit 50d8006)
6 tasks
owaiskazi19
pushed a commit
that referenced
this pull request
Jul 9, 2023
…outes (#7957) (#8459) * Support transport action names when registering NamedRoutes (#7957) * Adds ability to register legacy action names along with route Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> (cherry picked from commit 50d8006) * Fixes Changelog entry Signed-off-by: Darshit Chanpura <dchanp@amazon.com> --------- Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
DarshitChanpura
added a commit
to DarshitChanpura/OpenSearch
that referenced
this pull request
Jul 11, 2023
…g NamedRoutes (opensearch-project#7957) (opensearch-project#8459)" This reverts commit cd82f4c.
DarshitChanpura
added a commit
to DarshitChanpura/OpenSearch
that referenced
this pull request
Jul 11, 2023
…g NamedRoutes (opensearch-project#7957) (opensearch-project#8459)" This reverts commit cd82f4c. Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
DarshitChanpura
added a commit
to DarshitChanpura/OpenSearch
that referenced
this pull request
Jul 12, 2023
…g NamedRoutes (opensearch-project#7957) (opensearch-project#8459)" This reverts commit cd82f4c.
DarshitChanpura
added a commit
to DarshitChanpura/OpenSearch
that referenced
this pull request
Jul 12, 2023
…g NamedRoutes (opensearch-project#7957) (opensearch-project#8459)" This reverts commit cd82f4c. Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
vikasvb90
referenced
this pull request
in raghuvanshraj/OpenSearch
Jul 12, 2023
* Adds ability to register legacy action names along with route Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com>
nknize
pushed a commit
that referenced
this pull request
Jul 12, 2023
buddharajusahil
pushed a commit
to buddharajusahil/OpenSearch
that referenced
this pull request
Jul 18, 2023
…ch-project#7957) * Adds ability to register legacy action names along with route Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Signed-off-by: sahil buddharaju <sahilbud@amazon.com>
baba-devv
pushed a commit
to baba-devv/OpenSearch
that referenced
this pull request
Jul 29, 2023
…ch-project#7957) * Adds ability to register legacy action names along with route Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com>
shiv0408
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Apr 25, 2024
…ch-project#7957) * Adds ability to register legacy action names along with route Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change allows plugin devs to register a named route to be mapped against existing transport action name by passing a legacy name when registering a NamedRoute.
Related to: opensearch-project/security#2752
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.